package com.iris.jvmtest.memory;


/**
 * @date : 2017年10月19日 下午4:52:53
 * @author : Iris.Xiao
 * @version : 1.0
 * @description : -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails
*/
public class EdenTest {
	private int _1MB=1024*1024;
	public void test(){
		byte[]allocation1,allocation2,allocation3,allocation4;
		
		allocation1=new byte[2*_1MB];
		System.out.println("====allocation1=====");
		allocation2=new byte[2*_1MB];
		System.out.println("====allocation2=====");
		allocation3=new byte[2*_1MB];
		System.out.println("====allocation3=====");
		allocation4=new byte[4*_1MB];//出现一次Minor GC
		System.out.println("====allocation4=====");
	}
}
